# f=open("test3_17.py","r",encoding='utf-8')
# data=f.read()
# print(data)
# f.close()

# f = open("推送文件.txt", "r", encoding="utf-8")
# data1 = f.read()
# data1=f.readline()
# data2=f.readlines()
# print("read对应的结果:{}".format(data2))
# f.close()


# 写入文件
# f=open("推送文件.txt","w",encoding="utf-8")
# f.write('suzie')
# f.close()

# f=open("推送文件.txt","w",encoding="utf-8")
# data=['name\n','age\n','sex']
# f.writelines(data)
# f.close()

# 使用with open，可不用手动关闭文件
# with open("推送文件.txt", "r") as f:
#     data = f.read()
#     print(data)
